package sktit.practice.jpaint.shape;

import org.eclipse.swt.graphics.Point;

public class Circle extends Ellipse {

	public Circle(Point aVertex, int aPadding) {
		super(aVertex, aPadding, aPadding);
	}
	
	public double getPerimeter()
	{
		return getWidth() * Math.PI;
	}
	
	public double getArea()
	{
		return Math.PI * getWidth() * getWidth() * (1.0/4);
	}
	
	public Point[] getBorder()
	{
		return super.getBorder();
	}
	
	public int getRadius()
	{
		return this.width/2;
	}
	
}
